import { defineStore } from 'pinia';
const userCounterStore = defineStore('counter', {
  state: () => {
    return {
      counter: 100
    };
  },
  getters: {
    dbcounter(state) {
      return state.counter * 2;
    }
  },
  actions: {
    changeCounterAction(newCounter: number) {
      this.counter = newCounter;
    }
  }
});

export default userCounterStore;
